Interview Questions and Answer
Options:
a. <a href="/Demo/Index/1name=sandeep+soni"target="_blank">Home</a>
b. <a href="/Home/IndexId=1&name=sandeep+soni"target="_blank">Demo</a>
c. <a href="/Demo/IndexId=1&name=sandeep+soni"target="_blank">Home</a>
d. <a href="/Home/Index/1?name=sandeep+soni" target="_blank">Demo</a>
Reveal Answer
Options:
a. @Html.ActionLink("LinkName", "ActionMethod", "Controller")
b. @Html.ActionLink("LinkName", "Controller", "ActionMethod")
c. @Html.ActionLink("LinkName", "ActionMethod")
d. @Html.ActionLink("LinkName")
Reveal Answer
Options:
a. @Html.Form()
b. @Html.BeginFormTag()
c. @Html.StartForm()
d. @Html.BeginForm()
Reveal Answer
Options:
a. It returns string with HTML form tag and the same is rendered to the browser
b. It directly renders form tag to the browser
c. Default Http method rendered is post
d. Default Http method rendered is get
Reveal Answer
Options:
a. @{ Html.BeginForm(); } @{ Html.EndForm(); }
b. @Html.BeginForm() @Html.EndForm()
c. @{ Html.BeginForm(); @Html.EndForm(); }
d. @using (Html.BeginForm()) { }
Reveal Answer
Bestdotnet google plus